package cn.rslee.demo.spring.mybatis.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Component;

import cn.rslee.demo.spring.mybatis.entity.AccessLog;
import cn.rslee.demo.spring.mybatis.entity.AccessLogCount;

/**
 * @author rslee
 *
 */
@Component("accessLogDaoImpl")
public class AccessLogDaoImpl implements AccessLogDao {

	private SqlSession sqlSession;
	
	private AccessLogDao impl;

	public void setSqlSession(SqlSession sqlSession) {
		this.sqlSession = sqlSession;
		impl= this.sqlSession.getMapper(AccessLogDao.class);
	}

	@Override
	public void save(AccessLog log) {
		sqlSession.insert("cn.rslee.demo.spring.mybatis.dao.AccessLogDao.save", log);
	}

	@Override
	public void delete(long id) {
		// TODO Auto-generated method stub

	}

	@Override
	public void update(AccessLog log) {
		// TODO Auto-generated method stub

	}

	@Override
	public AccessLog findOne(long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AccessLog> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AccessLog> findBy(String username, String sysCode) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AccessLog> findByLimit(int from, int size) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long findCountBy() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<AccessLog> findByOrder(String username, String order) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AccessLogCount> groupBy(String groupBy) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AccessLog> findByParams(String sysCode, String username,
			Date visitTm) {
		return null;
	}

	@Override
	public List<AccessLog> findByQueryParams(Map<String, Object> queryParams) {
		return null;
	}

}
